package xyz.syyrjx.blog.entity;

import xyz.syyrjx.blog._enum.State;

/**
 * @author 大地崩坏苍蝇兽
 * @date 2023/12/27 18:54
 * @description 2048分数对象
 * @since v0.0.1
 */
public class Score2048 {
    private Long id;
    private Integer score;
    private String person;
    private Integer state;

    public Score2048() {}

    public Score2048(Long id, Integer score, String person) {
        this.id = id;
        this.score = score;
        this.person = person;
        state = State.NORMAL_STATE.getCode();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getPerson() {
        return person;
    }

    public void setPerson(String person) {
        this.person = person;
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Override
    public String toString() {
        return "Score2048{" +
                "id=" + id +
                ", score=" + score +
                ", person='" + person + '\'' +
                ", state=" + state +
                '}';
    }
}
